import { Post, Get, Patch, Put, Delete, Download, ax } from './http';
import { Type } from './interface';
import qs from 'qs';
export namespace api {
    /**
     * 总管理登录
     */
    export var AdminAccount_AdminAccountLogin = (query: Type.AdminAccount_AdminAccountLoginReq): Promise<Type.GetAdminAccountLoginReponse> => {
        return Get(`/api/AdminAccount/AdminAccountLogin?${qs.stringify(query)}`, {});
    };
    /**
     * ID/查看管理员信息
     */
    export var AdminAccount_GetAdminAccountById = (): Promise<Type.GetAdminAccountByIdReponse> => {
        return Get(`/api/AdminAccount/GetAdminAccountById`, {});
    };
    /**
     * 总管理密码更改
     */
    export var AdminAccount_PutAdminAccountPassword = (body: Type.PutAdminAccountPasswordRequest): Promise<any> => {
        return Put(`/api/AdminAccount/PutAdminAccountPassword`, body);
    };
    /**
     * 添加药品分类
     */
    export var DrugClassification_PostDrugClassificationInfo = (body: Type.PostDrugClassificationInfoReponse): Promise<any> => {
        return Post(`/api/DrugClassification/PostDrugClassificationInfo`, body);
    };
    /**
     * 类别名/查看信息列表
     */
    export var DrugClassification_GetDrugClassificationList = (
        query: Type.DrugClassification_GetDrugClassificationListReq
    ): Promise<Array<Type.GetDrugClassificationListReponse>> => {
        return Get(`/api/DrugClassification/GetDrugClassificationList?${qs.stringify(query)}`, {});
    };
    /**
     * 删除药品分类
     */
    export var DrugClassification_DeleteDrugClassificationById = (query: Type.DrugClassification_DeleteDrugClassificationByIdReq): Promise<any> => {
        return Delete(`/api/DrugClassification/DeleteDrugClassificationById?${qs.stringify(query)}`, {});
    };
    /**
     * 新增信息记录
     */
    export var InformationRecord_PostInformationRecordInfo = (body: Type.PostInformationRecordInfoReponse): Promise<any> => {
        return Post(`/api/InformationRecord/PostInformationRecordInfo`, body);
    };
    /**
     * 药店信息记录列表
     */
    export var InformationRecord_GetInformationRecordList = (
        query: Type.InformationRecord_GetInformationRecordListReq
    ): Promise<Type.GetInformationRecordListReponse> => {
        return Get(`/api/InformationRecord/GetInformationRecordList?${qs.stringify(query)}`, {});
    };
    /**
     * 管理员记录列表
     */
    export var InformationRecord_GetAdminInformationRecordList = (
        query: Type.InformationRecord_GetAdminInformationRecordListReq
    ): Promise<Type.GetInformationRecordListReponse> => {
        return Get(`/api/InformationRecord/GetAdminInformationRecordList?${qs.stringify(query)}`, {});
    };
    /**
     * 编辑信息记录
     */
    export var InformationRecord_PutInformationRecordInfoAsync = (body: Type.PutInformationRecordInfoRequest): Promise<any> => {
        return Put(`/api/InformationRecord/PutInformationRecordInfoAsync`, body);
    };
    /**
     * 5天内统计TOP5药店
     */
    export var InformationRecord_GetInformationRecordTop5DrugstoreName = (): Promise<Array<Type.GetInformationRecordTop5DrugstoreNameReponse>> => {
        return Get(`/api/InformationRecord/GetInformationRecordTop5DrugstoreName`, {});
    };
    /**
     * 5天内销量统计
     */
    export var InformationRecord_GetInformationRecordEightDaysStatistics = (): Promise<Array<
        Type.GetInformationRecordEightDaysStatisticsReponse
    >> => {
        return Get(`/api/InformationRecord/GetInformationRecordEightDaysStatistics`, {});
    };
    /**
     * 5天内统计百分比
     */
    export var InformationRecord_GetInformationPercentage = (): Promise<Type.GetInformationPercentageReponse> => {
        return Get(`/api/InformationRecord/GetInformationPercentage`, {});
    };
    /**
     * 信息记录详情
     */
    export var InformationRecord_GetInformationRecordById = (
        query: Type.InformationRecord_GetInformationRecordByIdReq
    ): Promise<Type.GetInformationRecordByIdReponse> => {
        return Get(`/api/InformationRecord/GetInformationRecordById?${qs.stringify(query)}`, {});
    };
    /**
     * 7天内区销售总数
     */
    export var InformationRecord_GetInformationRecordCitySevenDays = (): Promise<Array<Type.GetInformationRecordCitySevenDaysReoinse>> => {
        return Get(`/api/InformationRecord/GetInformationRecordCitySevenDays`, {});
    };
    /**
     * 获取二维码
     */
    export var Partial_PostMoths = (query: Type.Partial_PostMothsReq): Promise<string> => {
        return Get(`/api/Partial/PostMoths?${qs.stringify(query)}`, {});
    };
    /**
     * 注册药店
     */
    export var Pharmacy_PostPharmacyInfo = (body: Type.PostPharmacyInfoRequest): Promise<any> => {
        return Post(`/api/Pharmacy/PostPharmacyInfo`, body);
    };
    /**
     * 药店登录
     */
    export var Pharmacy_PharmacyLogin = (query: Type.Pharmacy_PharmacyLoginReq): Promise<Type.GetPharmacyLoginReponse> => {
        return Get(`/api/Pharmacy/PharmacyLogin?${qs.stringify(query)}`, {});
    };
    /**
     * 编辑药店信息
     */
    export var Pharmacy_PutPharmacyInfo = (body: Type.PutPharmacyInfoRequest): Promise<any> => {
        return Put(`/api/Pharmacy/PutPharmacyInfo`, body);
    };
    /**
     * 药店密码更改
     */
    export var Pharmacy_UpdatePharmacyPassword = (body: Type.PutPharmacyPasswordRequest): Promise<any> => {
        return Put(`/api/Pharmacy/UpdatePharmacyPassword`, body);
    };
    /**
     * ID查看信息
     */
    export var Pharmacy_GetPharmacyById = (): Promise<Type.GetPharmacyByIdReponse> => {
        return Get(`/api/Pharmacy/GetPharmacyById`, {});
    };
    /**
     * 小程序扫码获取信息
     */
    export var Pharmacy_GetAppletPharmacyById = (query: Type.Pharmacy_GetAppletPharmacyByIdReq): Promise<Type.GetAppletPharmacyByIdReponse> => {
        return Get(`/api/Pharmacy/GetAppletPharmacyById?${qs.stringify(query)}`, {});
    };
    /**
     * 获取药店列表
     */
    export var Pharmacy_GetPharmacyInfoList = (query: Type.Pharmacy_GetPharmacyInfoListReq): Promise<Type.GetPharmacyInfoListReponse> => {
        return Get(`/api/Pharmacy/GetPharmacyInfoList?${qs.stringify(query)}`, {});
    };
    /**
     * 管理员操作启用/禁用
     */
    export var Pharmacy_PutAdminPharmacyEnableStatus = (body: Type.PutAdminPharmacyEnableStatusReponse): Promise<any> => {
        return Put(`/api/Pharmacy/PutAdminPharmacyEnableStatus`, body);
    };
    /**
     * 获取省市区
     */
    export var ProvincialUrbanAreas_GetProvincialUrbanAreasList = (
        query: Type.ProvincialUrbanAreas_GetProvincialUrbanAreasListReq
    ): Promise<Array<Type.GetProvincialUrbanAreasListReponse>> => {
        return Get(`/api/ProvincialUrbanAreas/GetProvincialUrbanAreasList?${qs.stringify(query)}`, {});
    };
    /**
     * 药店创建记录人
     */
    export var RecordPeople_PostRecordPeopleInfo = (body: Type.PostRecordPeopleInfoRequest): Promise<any> => {
        return Post(`/api/RecordPeople/PostRecordPeopleInfo`, body);
    };
    /**
     * 药店记录人列表
     */
    export var RecordPeople_GetRecordPeopleByInfoList = (
        query: Type.RecordPeople_GetRecordPeopleByInfoListReq
    ): Promise<Array<Type.GetRecordPeopleByInfoListReponse>> => {
        return Get(`/api/RecordPeople/GetRecordPeopleByInfoList?${qs.stringify(query)}`, {});
    };
    /**
     * 删除药店记录人
     */
    export var RecordPeople_DeleteRecordPeopleById = (query: Type.RecordPeople_DeleteRecordPeopleByIdReq): Promise<any> => {
        return Delete(`/api/RecordPeople/DeleteRecordPeopleById?${qs.stringify(query)}`, {});
    };
    /**
     * openId查看用户信息
     */
    export var UserInformation_GetUserInformationByOpenId = (
        query: Type.UserInformation_GetUserInformationByOpenIdReq
    ): Promise<Type.GetUserInformationByOpenIdReponse> => {
        return Get(`/api/UserInformation/GetUserInformationByOpenId?${qs.stringify(query)}`, {});
    };
    /**
     * 小程序获取Openid
     */
    export var WeChat_GetMedilcineOpenid = (query: Type.WeChat_GetMedilcineOpenidReq): Promise<Type.GetOpenidReponse> => {
        return Get(`/api/WeChat/GetMedilcineOpenid?${qs.stringify(query)}`, {});
    };
}
